import dealHtml

def filename_edited_txt(url):
    url_before = url
    url_after = url_before.split("/")
    return url_after[3] + "_" + url_after[5] + "_edited.txt"

def delete_lines():
    lines = [l for l in open("temp/" + dealHtml.filename_txt(dealHtml.url), "r") if l.find("#", 0, 1) != 0]
    fd = open("temp/" + filename_edited_txt(dealHtml.url) , "w")
    fd.writelines(lines)
    fd.close()
